<template>
  <div id="coupon">
    <!-- 头部 -->
    <van-nav-bar title="红包卡券" left-arrow @click-left="onClickLeft" />
    <van-tabs v-model="activeName" title-active-color="#FFCC00" line-width="0">
      <!-- 未使用 -->
      <van-tab title="未使用" name="a">
        <!-- 10元豪华优惠券 -->
        <div class="left">
          <div class="text1">
            <span>¥10</span>
            <span>无门槛</span>
          </div>
          <div class="text2">
            <span>10元无门槛优惠券</span>
            <span>常温奶、优惠专区不可用</span>
          </div>
        </div>
        <div class="right" @click="rightClick">
          <span>立即使用</span>
        </div>
      </van-tab>
      <van-tab title="已使用" name="b">内容 2</van-tab>
      <van-tab title="已过期" name="c">内容 3</van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  name: "Coupon",
  data() {
    return {
      activeName: "a",
      // count: "",
      
    
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    rightClick() {},
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/less/coupon.less";
</style>
